package com.leyou.repository;

import com.leyou.entity.Item;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ItemRepository extends ElasticsearchRepository<Item,Long> {

    /**
     * 自定义查询
     * @param begin
     * @param end
     * @return
     */
    List<Item> findByPriceBetween(Double begin,Double end);
}
